package com.fulihui.usercore.request.vcode;

import com.fulihui.usercore.enums.VcodeProcessTypeEnum;
import org.near.servicesupport.request.BaseRequest;

/**
 * 发送验证码请求
 * Created by Willard.Hu on 2016/5/17.
 */
public class VcodeSendRequest extends BaseRequest {
    private static final long serialVersionUID = -7179410146919051919L;
    /**
     * 账号，必填
     */
     private String            accountNo;
    /**
     * 验证方式，默认手机短信方式
     * @see com.fulihui.usercore.enums.VcodeProcessTypeEnum
     */
    private String            processType      = VcodeProcessTypeEnum.MOBILE_SMS.getCode();
    /**
     * 验证码命名空间,通过该字段隔离验证码，必填
     */
     private String            vcodeNamespace;
    /**
     * 图形验证码
     */
    private String            imageCode;
    /**
     * 有效日期，默认5分钟
     * fix 30分钟
     */
    private int               expiresIn        = 30*60;
    /**
     * 限制再次生成时间，默认1分钟
     */
    private int               limitTime        = 60;
    /**
     * 手机验证码长度
     */
    private int               vcodeLength      = 6;

    /**
     * Getter method for property <tt>imageCode</tt>
     *
     * @return property value of imageCode
     */
    public String getImageCode() {
        return imageCode;
    }

    /**
     * Setter method for property <tt>imageCode</tt>.
     *
     * @param imageCode value to be assigned to property imageCode
     */
    public void setImageCode(String imageCode) {
        this.imageCode = imageCode;
    }

    public String getAccountNo() {
        return accountNo;
    }

    public void setAccountNo(String accountNo) {
        this.accountNo = accountNo;
    }

    public String getProcessType() {
        return processType;
    }

    public void setProcessType(String processType) {
        this.processType = processType;
    }

    public String getVcodeNamespace() {
        return vcodeNamespace;
    }

    public void setVcodeNamespace(String vcodeNamespace) {
        this.vcodeNamespace = vcodeNamespace;
    }

    public int getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(int expiresIn) {
        this.expiresIn = expiresIn;
    }

    public int getLimitTime() {
        return limitTime;
    }

    public void setLimitTime(int limitTime) {
        this.limitTime = limitTime;
    }

    public int getVcodeLength() {
        return vcodeLength;
    }

    public void setVcodeLength(int vcodeLength) {
        this.vcodeLength = vcodeLength;
    }
}
